package alejandro.castro.ladrillo;

import java.awt.Color;

import alejandro.castro.bolita.Bolita;
import alejandro.castro.extras.BloqueComponent;
import alejandro.castro.extras.Liberado;
import alejandro.castro.visual.BlockAppearance;

public class Ladrillo extends BloqueComponent {
	private int height;
	private int width;

	public Ladrillo(int x, int y, int width, int height) {
		this.setAppearance(new BlockAppearance(width, height, Color.WHITE, Color.GREEN));
		this.setX(x);
		this.setY(y);
		this.width = width;
		this.height = height;
		this.setEstadoComportamiento(Liberado.getInstance());
		
	}

	public void corregirPosicionBolita(Bolita bolita) {
		this.getEstadoComportamiento().corregirPosicionCon(bolita, this);
		
	}

	@Override
	public double getWidth() {
		return width;
	}

	@Override
	public double getHeight() {
		return height;
	}

	
}
